package com.woniuxy.user.conf;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/8 0008-下午 2:44
 */
@Configuration
public class RestTemplateConf {
    @Bean
    @LoadBalanced //ribbon提供的负载
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
